package com.pdg.mcplugin.ranger.conversations;

import org.bukkit.conversations.ConversationContext;
import org.bukkit.conversations.Prompt;

import com.pdg.mcplugin.common.baseclasses.MessagePromptBase;
import com.pdg.mcplugin.ranger.Ranger;

public class RenamePromptCancel extends MessagePromptBase<Ranger>{

	private static final String PROMPT = "Cancelling the rename of '%s'.";

	public RenamePromptCancel(Ranger thePlugin) {
		super(thePlugin);
	}

	@Override
	public String getPromptText(ConversationContext theContext) {
		String thePlaceName = (String)theContext.getSessionData(RenamePrompt.KEY_PLACENAME);
		return String.format(PROMPT, thePlaceName);
	}

	@Override
	protected Prompt getNextPrompt(ConversationContext theContext) {
		return Prompt.END_OF_CONVERSATION;
	}

}
